package com.gdufe.firesafe.model.enums;

import com.gdufe.firesafe.model.constants.UrgentLevelConstant;

/**
 * 检查项的严重等级和警告信息
 */
public enum InspectionItemEnum {
    DETECTOR_NO_ERROR(UrgentLevelConstant.HIGH, "烟雾检测器有故障报警记录\n"),
    DETECTOR_SELF_TEST(UrgentLevelConstant.MIDDLE, "烟雾检测器自检功能不正常\n"),
    DETECTOR_ELECTRICITY(UrgentLevelConstant.LOW, "烟雾检测器电池电量不充足\n"),
    GAS_NO_LEAKAGE(UrgentLevelConstant.HIGH, "燃气管道有泄漏\n"),
    GAS_METER_STATUS(UrgentLevelConstant.MIDDLE, "燃气表读数不正常\n"),
    GAS_AUTOMATIC_SHUT_OFF(UrgentLevelConstant.HIGH, "自动切断阀功能失效\n"),
    CIRCUIT_STATUS(UrgentLevelConstant.HIGH, "电路有故障\n"),
    ELECTRICAL_INSULATION(UrgentLevelConstant.MIDDLE, "电气设备绝缘有问题\n"),
    STANDBY_POWER(UrgentLevelConstant.MIDDLE, "备用电源工作不正常\n"),
    ELECTRICAL_LOAD(UrgentLevelConstant.LOW, "负载分配不合理\n"),
    ELECTRICAL_GROUNDING(UrgentLevelConstant.MIDDLE, "接地保护不完善\n"),
    EXTINGUISHER_LEAD_SEALING(UrgentLevelConstant.HIGH, "灭火器铅封不完好\n"),
    EXTINGUISHER_PRESSURE(UrgentLevelConstant.HIGH, "灭火器压力不正常\n"),
    EXTINGUISHER_DAMAGED(UrgentLevelConstant.HIGH, "灭火器有明显物理损坏\n"),
    EXTINGUISHER_EXPIRED(UrgentLevelConstant.HIGH, "灭火器过期\n");

    private final Integer urgentLevel;
    private final String warnMessage;
    InspectionItemEnum(Integer urgentLevel, String warnMessage) {
        this.urgentLevel = urgentLevel;
        this.warnMessage = warnMessage;
    }

    public Integer getUrgentLevel() {
        return urgentLevel;
    }
    public String getWarnMessage() {
        return warnMessage;
    }
}
